/*
 * BSM6.0
 *
 * Copyright 2012-2013 (C) SINODATA CO., LTD. All Rights Reserved.
 */
package com.sinodata.bsm.common.vo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 * <p>
 * Description: 
 * </p>
 *
 * @author wangyazhou
 * @version 1.0

 * <p>
 * History: 
 *
 * Date                     Author         Version     Description
 * ---------------------------------------------------------------------------------
 * 2012-12-18 下午8:37:07          wangyazhou        1.0         To create
 * </p>
 *
 * @since 
 * @see     
 */
/**
 * Event entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "FAULT_TRAP_Rule")
public class FaultTrapRule implements java.io.Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;
    private Long eventType;
    private String name = "";
    private Long resType;
    private Long resId;
    private String filtIp = "";
    private Integer eventLevel;
    private Integer duration;

    private Integer filtLevel;

    private String filtStatus = "";
    private String filtGeneric = "";
    private String filtMsg = "";

    @Id
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "sequence")
    @SequenceGenerator(name = "sequence", sequenceName = "FAULT_TRAP_RULE_SEQ")
    @Column(name = "ID", unique = true, nullable = false, precision = 18, scale = 0)
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Column(name = "event_type", precision = 18, scale = 0)
    public Long getEventType() {
        return eventType;
    }

    public void setEventType(Long eventType) {
        this.eventType = eventType;
    }

    @Column(name = "name", length = 128)
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Column(name = "res_type", precision = 18, scale = 0)
    public Long getResType() {
        return resType;
    }

    public void setResType(Long resType) {
        this.resType = resType;
    }

    @Column(name = "res_id", precision = 18, scale = 0)
    public Long getResId() {
        return resId;
    }

    public void setResId(Long resId) {
        this.resId = resId;
    }

    @Column(name = "filt_ip", length = 32)
    public String getFiltIp() {
        return filtIp;
    }

    public void setFiltIp(String filtIp) {
        this.filtIp = filtIp;
    }

    @Column(name = "event_level", precision = 9, scale = 0)
    public Integer getEventLevel() {
        return eventLevel;
    }

    public void setEventLevel(Integer eventLevel) {
        this.eventLevel = eventLevel;
    }

    @Column(name = "duration", precision = 9, scale = 0)
    public Integer getDuration() {
        return duration;
    }

    public void setDuration(Integer duration) {
        this.duration = duration;
    }

    @Column(name = "filt_level", precision = 9, scale = 0)
    public Integer getFiltLevel() {
        return filtLevel;
    }

    public void setFiltLevel(Integer filtLevel) {
        this.filtLevel = filtLevel;
    }

    @Column(name = "filt_err_stat", length = 32)
    public String getFiltStatus() {
        return filtStatus;
    }

    public void setFiltStatus(String filtStatus) {
        this.filtStatus = filtStatus;
    }

    @Column(name = "filt_generic", length = 32)
    public String getFiltGeneric() {
        return filtGeneric;
    }

    public void setFiltGeneric(String filtGeneric) {
        this.filtGeneric = filtGeneric;
    }

    @Column(name = "filt_msg", length = 256)
    public String getFiltMsg() {
        return filtMsg;
    }

    public void setFiltMsg(String filtMsg) {
        this.filtMsg = filtMsg;
    }

    @Override
    public String toString() {
        return "FaultTrapRule [id=" + id + ", eventType=" + eventType + ", name=" + name + ", resType=" + resType + ", resId=" + resId + ", filtIp=" + filtIp + ", eventLevel=" + eventLevel + ", duration=" + duration + ", filtLevel=" + filtLevel + ", filtStatsu=" + filtStatus + ", filtGeneric=" + filtGeneric + ", filtMsg=" + filtMsg + "]";
    }

}
